package jvm.memory;

import java.lang.ref.SoftReference;

public class HeapOverflow {
	public void heapOverflow(){
		byte b[]=new byte[1024*1024*2];
		SoftReference r=new SoftReference(b);
		System.out.println(b);
	}
	
	public static void main(String[] args) {
		new HeapOverflow().heapOverflow();
		System.out.println(Integer.valueOf("32344"));
	}
}
